package org.jeecg.modules.demo.seal.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.seal.entity.Seal;
import org.jeecg.modules.demo.seal.entity.SealTime;
import org.jeecg.modules.demo.seal.mapper.SealMapper;
import org.jeecg.modules.demo.seal.service.ISealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class SealServiceImpl extends ServiceImpl<SealMapper, Seal> implements ISealService {

    @Autowired
    private SealMapper sealMapper;

    public String getOrgCode(String userid){
        return sealMapper.getOrgCode(userid);
    }

    public SealTime getStartTime(){
        return sealMapper.getStartTime();
    }



    public void unblock(String id, String time){
        sealMapper.unblock(id, time);
    }

    public SealTime getSealTime(){
        return sealMapper.getSealTime();
    }

    public void updataSealTime(SealTime sealTime){
        sealMapper.updataSealTime(sealTime);
    }

    public Seal getByCarId(Integer carId, Date startTime, Date endTime){
        return sealMapper.getByCarId(carId, startTime, endTime);
    }

    public void updateSealById(Seal seal){
        sealMapper.updateSealById(seal);
    }
}
